
<%@ page import="auctionhausen.Listing"%>
<%@ page contentType="text/html" %>
<!doctype html>
<html>
<head>
    <link rel="stylesheet" href="/AuctionHausen/static/css/main.css" type="text/css">
	<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
	<div id="show-listing" class="content scaffold-show" role="main">
		<h1>
			Congratulations, You have won Listing:
			<br />
			${listingInstance?.name}
		</h1>
		<ol class="property-list listing">
			<g:if test="${listingInstance?.name}">
				<li class="fieldcontain"><span id="name-label"
					class="property-label"><g:message code="listing.name.label"
							default="Name" /></span> <span class="property-value"
					aria-labelledby="name-label"><g:fieldValue
							bean="${listingInstance}" field="name" /></span></li>
			</g:if>

			<g:if test="${listingInstance?.startingPrice}">
				<li class="fieldcontain"><span id="startingPrice-label"
					class="property-label"><g:message
							code="listing.startingPrice.label" default="Starting Price" /></span> <span
					class="property-value" aria-labelledby="startingPrice-label">
						<g:formatNumber number="${listingInstance.startingPrice}"
							type="currency" currencyCode="USD" />
				</span></li>
			</g:if>

			<g:if test="${winningBidPrice}">
				<li class="fieldcontain"><span id="startingPrice-label"
					class="property-label"><g:message
							code="listing.winningBidPrice.label" default="Winning Bid Price" /></span>
					<span class="property-value"
					aria-labelledby="winningBidPrice-label"> <g:formatNumber
							number="${winningBidPrice}" type="currency"
							currencyCode="USD" />
				</span></li>
			</g:if>

			<g:if test="${listingInstance?.description}">
				<li class="fieldcontain"><span id="description-label"
					class="property-label"><g:message
							code="listing.description.label" default="Description" /></span> <span
					class="property-value" aria-labelledby="description-label"><g:fieldValue
							bean="${listingInstance}" field="description" /></span></li>
			</g:if>

			<g:if test="${listingInstance?.seller}">
				<li class="fieldcontain">
				    <span id="seller-label" class="property-label">
				        <g:message code="listing.seller.label" default="Seller" />
				    </span> 
					<span class="property-value" aria-labelledby="seller-label"> 
					   ${listingInstance.seller.email.replaceFirst(/@.*/, "")}
				    </span>
				</li>
			</g:if>
		</ol>
	</div>
</body>
</html>
